import request from '@/utils/request'

/** 查询列表 */
export function listSysUser(params) {
  return request({
    url: '/system/sysUser/list',
    method: 'get',
    params: params
  })
}

/** 导出 */
export function exportSysUser(params) {
  return request({
    url: '/system/sysUser/exportExcel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

/** 根据主键查询 */
export function getSysUser(id) {
  return request({
    url: '/system/sysUser/queryById/' + id,
    method: 'get'
  })
}

/** 新增 */
export function saveSysUser(data) {
  return request({
    url: '/system/sysUser/save',
    method: 'post',
    data
  })
}

/** 根据主键更新 */
export function updateSysUser(data) {
  return request({
    url: '/system/sysUser/updateById',
    method: 'post',
    data
  })
}

/** 根据主键删除 */
export function removeSysUser(id) {
  return request({
    url: '/system/sysUser/removeById/' + id,
    method: 'get'
  })
}

/** 根据主键批量删除 */
export function removeBatchSysUser(ids) {
  return request({
    url: '/system/sysUser/removeBatchByIds/' + ids,
    method: 'get'
  })
}
